
import { createRouter, createWebHistory } from 'vue-router';
const routes = [
    {
        path: '/',
        name: 'Home',
        redirect: '/index',
        children: [
            {
                path: '/index',
                name: 'Index',
                component: () => import('@/views/index.vue')
            }
        ]
    }
];

const router = createRouter({
    routes: routes,
    strict: true,
    history: createWebHistory()
});

// @ts-ignore
router.beforeEach((to, from, next) => {

    next();

})
router.afterEach(() => {

})
export default router;
